package com.firefly.service.query.cms;

import com.firefly.dao.dao.cms.po.ConfigPo;
import com.firefly.dao.dao.cms.service.ConfigService;
import com.firefly.dao.assembler.cms.ConfigAssembler;
import com.firefly.dao.vo.cms.ConfigVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description: CMS系统配置
 * @author: lzg(萤火科技 ： 854378082 @ qq.com)
 * @date: 2022/12/12
 **/
@Service
public class ConfigQuery {
    private final ConfigService configService;
    private final ConfigAssembler configAssembler;
    @Autowired
    public ConfigQuery(ConfigService configService,ConfigAssembler configAssembler){
        this.configService = configService;
        this.configAssembler = configAssembler;
    }
    public ConfigVo getDetail(int id){
        ConfigPo entity = configService.getById(id);
        return configAssembler.getVo(entity);
    }
}
